# include "myHeader.h"

void printOutput(char *path, char *Hare, char *Turtoise){
	//Having an iterator for the loop starting at begining of path
	char *pathPoint = path;

	//Loop to print path from 0 - 49 (50 spaces
	while(pathPoint < (path + 50))
	{
		//If the iterator is equal to hare then this means
		//that hare is at that point of the path so it prints
		//H
		if(pathPoint == Hare)
			printf("H");
		
		//If the iterator is equal to turtoise then this means
		//that turtoise is at that point of the path so it prints
		//T
		else if (pathPoint == Turtoise)
			printf("T");
		
		//To print path if turtoise and hare are not at the iterators
		//point of path.
		else 
			printf("%c", *pathPoint);

		//incrementing iterator
		pathPoint++;
	}
	//Break line after each print of path
	printf("\n");
    //*could have used a for loop for path would have been easier but owell!!!!
}